<?php

$id = $_GET['ids'];

$mysqli = new mysqli('localhost','root','123456','restaurante');
$myArray = array();

echo $mysqli->query("UPDATE mesas SET estado = '1' WHERE id IN ($id)");

$mysqli->close();
echo 1;
?>
